
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Android字节码插桩 · Aivin开发笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Aivin">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="智能家居.html" />
    
    
    <link rel="prev" href="Android外挂.html" />
    

    
        <link rel="shortcut icon" href='../../assets/images/favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../assets/images/favicon.ico' type="image/x-icon">
    
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    首页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../doc/常用网站.html">
            
                <a href="../doc/常用网站.html">
            
                    
                    常用网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../常用软件/常用软件和框架.html">
            
                <a href="../常用软件/常用软件和框架.html">
            
                    
                    常用软件和框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../doc/开发规范.html">
            
                <a href="../doc/开发规范.html">
            
                    
                    开发规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../doc/开源软件.html">
            
                <a href="../doc/开源软件.html">
            
                    
                    开源软件和框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../doc/Android常用代码.html">
            
                <a href="../doc/Android常用代码.html">
            
                    
                    Android常用代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../源码阅读/源码阅读配置.html">
            
                <a href="../源码阅读/源码阅读配置.html">
            
                    
                    源码阅读
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../源码阅读/其他框架源码.html">
            
                <a href="../源码阅读/其他框架源码.html">
            
                    
                    其他框架源码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../产品经理/产品经理.html">
            
                <a href="../产品经理/产品经理.html">
            
                    
                    产品经理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../设计模式/设计模式.html">
            
                <a href="../设计模式/设计模式.html">
            
                    
                    设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../设计模式/设计模式.html">
            
                <a href="../设计模式/设计模式.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../设计模式/模式详解.html">
            
                <a href="../设计模式/模式详解.html">
            
                    
                    模式详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../设计模式/mvc等.html">
            
                <a href="../设计模式/mvc等.html">
            
                    
                    mvc等
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../数据结构/常用数据结构.html">
            
                <a href="../数据结构/常用数据结构.html">
            
                    
                    基本算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../数据结构/常用数据结构.html">
            
                <a href="../数据结构/常用数据结构.html">
            
                    
                    常用数据结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../常用算法/算法术语.html">
            
                <a href="../常用算法/算法术语.html">
            
                    
                    算法术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../常用算法/排序算法.html">
            
                <a href="../常用算法/排序算法.html">
            
                    
                    排序算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../常用算法/查找算法.html">
            
                <a href="../常用算法/查找算法.html">
            
                    
                    查找算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../常用算法/大数相加.html">
            
                <a href="../常用算法/大数相加.html">
            
                    
                    大数相加
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.6" data-path="../常用算法/集合的所有子集.html">
            
                <a href="../常用算法/集合的所有子集.html">
            
                    
                    获得集合的所有子集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.7" data-path="../常用算法/扫描线种子填充算法.html">
            
                <a href="../常用算法/扫描线种子填充算法.html">
            
                    
                    扫描线种子填充算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.8" data-path="../常用算法/其他算法.html">
            
                <a href="../常用算法/其他算法.html">
            
                    
                    其他算法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../java基础/原码补码反码.html">
            
                <a href="../java基础/原码补码反码.html">
            
                    
                    Java部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../java基础/原码补码反码.html">
            
                <a href="../java基础/原码补码反码.html">
            
                    
                    原码补码反码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../java基础/java常用代码.html">
            
                <a href="../java基础/java常用代码.html">
            
                    
                    java常用代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../java基础/JVM详解.html">
            
                <a href="../java基础/JVM详解.html">
            
                    
                    JVM详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../java基础/类加载机制.html">
            
                <a href="../java基础/类加载机制.html">
            
                    
                    类加载机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../java基础/内存模型.html">
            
                <a href="../java基础/内存模型.html">
            
                    
                    内存模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../java基础/GC机制.html">
            
                <a href="../java基础/GC机制.html">
            
                    
                    GC机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.7" data-path="../java基础/对象内存布局.html">
            
                <a href="../java基础/对象内存布局.html">
            
                    
                    对象内存布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.8" data-path="../java基础/继承多态.html">
            
                <a href="../java基础/继承多态.html">
            
                    
                    继承和多态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.9" data-path="../java基础/相等判断.html">
            
                <a href="../java基础/相等判断.html">
            
                    
                    相等判断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.10" data-path="../java基础/Java容器类.html">
            
                <a href="../java基础/Java容器类.html">
            
                    
                    Java容器类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.11" data-path="../java基础/Java枚举.html">
            
                <a href="../java基础/Java枚举.html">
            
                    
                    Java枚举
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.12" data-path="../java基础/自定义异常.html">
            
                <a href="../java基础/自定义异常.html">
            
                    
                    自定义异常
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.13" data-path="../java基础/深度拷贝.html">
            
                <a href="../java基础/深度拷贝.html">
            
                    
                    深度拷贝
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.14" data-path="../java基础/泛型详解.html">
            
                <a href="../java基础/泛型详解.html">
            
                    
                    泛型详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.15" data-path="../java基础/线程详解.html">
            
                <a href="../java基础/线程详解.html">
            
                    
                    线程详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.16" data-path="../java基础/java注解.html">
            
                <a href="../java基础/java注解.html">
            
                    
                    注解详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.17" data-path="../java基础/数据解析.html">
            
                <a href="../java基础/数据解析.html">
            
                    
                    数据解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.18" data-path="../java基础/java8新特性.html">
            
                <a href="../java基础/java8新特性.html">
            
                    
                    Java8新特性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="android零散知识.html">
            
                <a href="android零散知识.html">
            
                    
                    Android部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="基础控件使用.html">
            
                <a href="基础控件使用.html">
            
                    
                    基础控件使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="android零散知识.html">
            
                <a href="android零散知识.html">
            
                    
                    Android零散知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="android坐标体系.html">
            
                <a href="android坐标体系.html">
            
                    
                    Android坐标体系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="APP的启动流程.html">
            
                <a href="APP的启动流程.html">
            
                    
                    APP启动流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="View加载流程.html">
            
                <a href="View加载流程.html">
            
                    
                    View加载流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="事件分发机制.html">
            
                <a href="事件分发机制.html">
            
                    
                    事件分发机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="控件绘制流程.html">
            
                <a href="控件绘制流程.html">
            
                    
                    控件绘制流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.8" data-path="常用shape.html">
            
                <a href="常用shape.html">
            
                    
                    常用shape
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.9" data-path="进程通信.html">
            
                <a href="进程通信.html">
            
                    
                    进程通信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.10" data-path="../通信方式/通信方式详解.html">
            
                <a href="../通信方式/通信方式详解.html">
            
                    
                    通信方式详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.11" data-path="Binder详解.html">
            
                <a href="Binder详解.html">
            
                    
                    Binder详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.12" data-path="Handler详解.html">
            
                <a href="Handler详解.html">
            
                    
                    Handle详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.13" data-path="Fragment详解.html">
            
                <a href="Fragment详解.html">
            
                    
                    Fragment详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.14" data-path="Activity详解.html">
            
                <a href="Activity详解.html">
            
                    
                    Activity详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.15" data-path="BroadcastReceiver.html">
            
                <a href="BroadcastReceiver.html">
            
                    
                    BroadcastReceiver详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.16" data-path="Service服务.html">
            
                <a href="Service服务.html">
            
                    
                    Service详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.17" data-path="动画详解.html">
            
                <a href="动画详解.html">
            
                    
                    动画详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.18" data-path="屏幕刷新机制.html">
            
                <a href="屏幕刷新机制.html">
            
                    
                    屏幕刷新机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.19" data-path="屏幕适配.html">
            
                <a href="屏幕适配.html">
            
                    
                    屏幕适配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.20" data-path="图片加载详解.html">
            
                <a href="图片加载详解.html">
            
                    
                    图片加载详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.21" data-path="WebView详解.html">
            
                <a href="WebView详解.html">
            
                    
                    WebView详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.22" data-path="沉浸式.html">
            
                <a href="沉浸式.html">
            
                    
                    沉浸式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.23" data-path="相机模块.html">
            
                <a href="相机模块.html">
            
                    
                    相机模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.24" data-path="地图模块.html">
            
                <a href="地图模块.html">
            
                    
                    地图模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.25" data-path="Androidstudio插件开发.html">
            
                <a href="Androidstudio插件开发.html">
            
                    
                    Androidstudio插件开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.26" data-path="Apk插件化开发.html">
            
                <a href="Apk插件化开发.html">
            
                    
                    Apk插件化开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.27" data-path="App组件化开发.html">
            
                <a href="App组件化开发.html">
            
                    
                    App组件化开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.28" data-path="sdk开发.html">
            
                <a href="sdk开发.html">
            
                    
                    sdk开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.29" data-path="APP优化.html">
            
                <a href="APP优化.html">
            
                    
                    APP优化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.30" data-path="项目参数配置.html">
            
                <a href="项目参数配置.html">
            
                    
                    项目参数配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.31" data-path="App发布.html">
            
                <a href="App发布.html">
            
                    
                    App发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.32" data-path="Android外挂.html">
            
                <a href="Android外挂.html">
            
                    
                    Android外挂
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.12.33" data-path="Android字节码插桩.html">
            
                <a href="Android字节码插桩.html">
            
                    
                    Android字节码插桩
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.34" data-path="智能家居.html">
            
                <a href="智能家居.html">
            
                    
                    智能家居
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../python/python基础.html">
            
                <a href="../python/python基础.html">
            
                    
                    python部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../python/python基础.html">
            
                <a href="../python/python基础.html">
            
                    
                    python基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../python/python爬虫.html">
            
                <a href="../python/python爬虫.html">
            
                    
                    python爬虫
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../gradle/Groovy.html">
            
                <a href="../gradle/Groovy.html">
            
                    
                    Groovy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../kotlin/kotlin部分.html">
            
                <a href="../kotlin/kotlin部分.html">
            
                    
                    kotlin部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../flutter/flutter部分.html">
            
                <a href="../flutter/flutter部分.html">
            
                    
                    flutter部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../native/ccpp.html">
            
                <a href="../native/ccpp.html">
            
                    
                    native部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../native/Linux.html">
            
                <a href="../native/Linux.html">
            
                    
                    Linux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../native/ccpp.html">
            
                <a href="../native/ccpp.html">
            
                    
                    cCpp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../native/NDK.html">
            
                <a href="../native/NDK.html">
            
                    
                    NDK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../native/系统编译剪裁.html">
            
                <a href="../native/系统编译剪裁.html">
            
                    
                    系统编译剪裁
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.5" data-path="../native/音视频.html">
            
                <a href="../native/音视频.html">
            
                    
                    音视频
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.6" data-path="../native/音视频第三方库.html">
            
                <a href="../native/音视频第三方库.html">
            
                    
                    音视频第三方库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.7" data-path="../native/相关代码.html">
            
                <a href="../native/相关代码.html">
            
                    
                    相关代码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../server/服务器部分.html">
            
                <a href="../server/服务器部分.html">
            
                    
                    服务器部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../webDev/web部分.html">
            
                <a href="../webDev/web部分.html">
            
                    
                    web部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="../人工智能/人工智能相关概念.html">
            
                <a href="../人工智能/人工智能相关概念.html">
            
                    
                    人工智能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="../面试真题/极飞.html">
            
                <a href="../面试真题/极飞.html">
            
                    
                    面试真题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >Android字节码插桩</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#android-&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;"><b>1. </b>Android &#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;</a></li><ul><li><span class="title-icon "></span><a href="#&#x4EC0;&#x4E48;&#x662F;&#x63D2;&#x6869;"><b>1.1. </b>&#x4EC0;&#x4E48;&#x662F;&#x63D2;&#x6869;</a></li><li><span class="title-icon "></span><a href="#&#x63D2;&#x6869;&#x7684;&#x5E94;&#x7528;&#x573A;&#x666F;"><b>1.2. </b>&#x63D2;&#x6869;&#x7684;&#x5E94;&#x7528;&#x573A;&#x666F;</a></li><li><span class="title-icon "></span><a href="#&#x63D2;&#x6869;&#x7684;&#x65F6;&#x673A;"><b>1.3. </b>&#x63D2;&#x6869;&#x7684;&#x65F6;&#x673A;</a></li></ul><li><span class="title-icon "></span><a href="#&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;&#x6846;&#x67B6;-asm"><b>2. </b>&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;&#x6846;&#x67B6; ASM</a></li><ul><li><span class="title-icon "></span><a href="#classvisitor"><b>2.1. </b>ClassVisitor</a></li><li><span class="title-icon "></span><a href="#methodvisitor"><b>2.2. </b>MethodVisitor</a></li><li><span class="title-icon "></span><a href="#classreader"><b>2.3. </b>ClassReader</a></li><li><span class="title-icon "></span><a href="#classwriter"><b>2.4. </b>ClassWriter</a></li></ul><li><span class="title-icon "></span><a href="#asm-bytecode-outline-&#x5B57;&#x8282;&#x7801;&#x8F85;&#x52A9;&#x5DE5;&#x5177;"><b>3. </b>ASM Bytecode Outline (&#x5B57;&#x8282;&#x7801;&#x8F85;&#x52A9;&#x5DE5;&#x5177;)</a></li><li><span class="title-icon "></span><a href="#transform-api--android&#x5E73;&#x53F0;"><b>4. </b>Transform API ( Android&#x5E73;&#x53F0;)</a></li><ul><li><span class="title-icon "></span><a href="#transform"><b>4.1. </b>Transform</a></li><li><span class="title-icon "></span><a href="#&#x5176;&#x4ED6;"><b>4.2. </b>&#x5176;&#x4ED6;</a></li></ul></ul></div><a href="#android-&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="android-&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;"><a name="android-&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;" class="anchor-navigation-ex-anchor" href="#android-&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;"><i class="fa fa-link" aria-hidden="true"></i></a>1. Android &#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;</h1>
<h2 id="&#x4EC0;&#x4E48;&#x662F;&#x63D2;&#x6869;"><a name="&#x4EC0;&#x4E48;&#x662F;&#x63D2;&#x6869;" class="anchor-navigation-ex-anchor" href="#&#x4EC0;&#x4E48;&#x662F;&#x63D2;&#x6869;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. &#x4EC0;&#x4E48;&#x662F;&#x63D2;&#x6869;</h2>
<pre><code class="lang-text">&#x63D2;&#x6869;&#x5C31;&#x662F;&#x5C06;&#x4E00;&#x6BB5;&#x4EE3;&#x7801;&#x63D2;&#x5165;&#x6216;&#x8005;&#x66FF;&#x6362;&#x539F;&#x672C;&#x7684;&#x4EE3;&#x7801;&#x3002;
&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;&#x987E;&#x540D;&#x601D;&#x4E49;&#x5C31;&#x662F;&#x5728;&#x6211;&#x4EEC;&#x7F16;&#x5199;&#x7684;&#x6E90;&#x7801;&#x7F16;&#x8BD1;&#x6210;&#x5B57;&#x8282;&#x7801;&#xFF08;Class&#xFF09;&#x540E;&#xFF0C;
&#x5728;Android&#x4E0B;&#x751F;&#x6210;dex&#x4E4B;&#x524D;&#x4FEE;&#x6539;Class&#x6587;&#x4EF6;&#xFF0C;
&#x4FEE;&#x6539;&#x6216;&#x8005;&#x589E;&#x5F3A;&#x539F;&#x6709;&#x4EE3;&#x7801;&#x903B;&#x8F91;&#x7684;&#x64CD;&#x4F5C;&#x3002;
</code></pre>
<h2 id="&#x63D2;&#x6869;&#x7684;&#x5E94;&#x7528;&#x573A;&#x666F;"><a name="&#x63D2;&#x6869;&#x7684;&#x5E94;&#x7528;&#x573A;&#x666F;" class="anchor-navigation-ex-anchor" href="#&#x63D2;&#x6869;&#x7684;&#x5E94;&#x7528;&#x573A;&#x666F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. &#x63D2;&#x6869;&#x7684;&#x5E94;&#x7528;&#x573A;&#x666F;</h2>
<pre><code class="lang-text">&#x901A;&#x8FC7; &#x4EE3;&#x7801;&#x63D2;&#x5165;&#x3001;&#x4EE3;&#x7801;&#x66FF;&#x6362;&#x5B9E;&#x73B0;
&#x65E0;&#x75D5;&#x57CB;&#x70B9;&#x3001;&#x6027;&#x80FD;&#x76D1;&#x63A7; &#x3001;&#x65E5;&#x5FD7;&#x8BB0;&#x5F55;&#x3001;
&#x6027;&#x80FD;&#x7EDF;&#x8BA1;&#x3001;&#x5F02;&#x5E38;&#x5904;&#x7406;&#x3001;&#x4FEE;&#x6539;&#x4E09;&#x65B9;&#x5E93;&#x4EE3;&#x7801;&#x7B49;&#x76EE;&#x7684;&#x3002;
&#x603B;&#x4E4B;&#x5C31;&#x662F; AOP&#xFF08;&#x9762;&#x5411;&#x5207;&#x9762;&#x7F16;&#x7A0B;&#xFF09;&#x3002;
</code></pre>
<h2 id="&#x63D2;&#x6869;&#x7684;&#x65F6;&#x673A;"><a name="&#x63D2;&#x6869;&#x7684;&#x65F6;&#x673A;" class="anchor-navigation-ex-anchor" href="#&#x63D2;&#x6869;&#x7684;&#x65F6;&#x673A;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. &#x63D2;&#x6869;&#x7684;&#x65F6;&#x673A;</h2>
<pre><code class="lang-text">&#x5B57;&#x8282;&#x7801;&#x64CD;&#x4F5C;&#x6846;&#x67B6;&#x7684;&#x4F5C;&#x7528;&#x5728;&#x4E8E;&#x751F;&#x6210;&#x6216;&#x8005;&#x4FEE;&#x6539;Class&#x6587;&#x4EF6;&#xFF0C;
&#x56E0;&#x6B64;&#x5728;Android&#x4E2D;&#x5B57;&#x8282;&#x7801;&#x6846;&#x67B6;&#x672C;&#x8EAB;&#x662F;&#x4E0D;&#x9700;&#x8981;&#x6253;&#x5305;&#x8FDB;&#x5165;APK&#x7684;&#xFF0C;
&#x53EA;&#x6709;&#x5176;&#x751F;&#x6210;/&#x4FEE;&#x6539;&#x4E4B;&#x540E;&#x7684;Class&#x624D;&#x9700;&#x8981;&#x6253;&#x5305;&#x8FDB;&#x5165;APK&#x4E2D;&#x3002;
&#x5B83;&#x7684;&#x5DE5;&#x4F5C;&#x65F6;&#x673A;&#x5728;Android&#x6253;&#x5305;&#x6D41;&#x7A0B;&#x4E2D;&#x7684; java &#x6587;&#x4EF6;&#x751F;&#x6210; Class &#x4E4B;&#x540E;&#xFF0C;&#x6253;&#x5305; .dex &#x4E4B;&#x524D;&#x3002;
</code></pre>
<h1 id="&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;&#x6846;&#x67B6;-asm"><a name="&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;&#x6846;&#x67B6;-asm" class="anchor-navigation-ex-anchor" href="#&#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;&#x6846;&#x67B6;-asm"><i class="fa fa-link" aria-hidden="true"></i></a>2. &#x5B57;&#x8282;&#x7801;&#x63D2;&#x6869;&#x6846;&#x67B6; ASM</h1>
<pre><code class="lang-text">&#x5728;maven &#x5E93;&#x4E2D;&#x67E5;&#x770B;&#x6700;&#x65B0;&#x7248;&#x672C;&#xFF0C;
https://search.maven.org/search?q=g:org.ow2.asm
The source code is hosted on Gitlab. 
https://gitlab.ow2.org/asm/asm 

//&#x5F15;&#x5165;asm&#x5E93;
compile &apos;org.ow2.asm:asm:9.1&apos;
compile &apos;org.ow2.asm:asm-commons:9.1&apos;
compile &apos;org.ow2.asm:asm-analysis:9.1&apos;
compile &apos;org.ow2.asm:asm-util:9.1&apos;
compile &apos;org.ow2.asm:asm-tree:9.1&apos;
compileOnly &apos;com.android.tools.build:gradle:3.4.1&apos; , {
    //&#x6392;&#x9664;gradle&#x81EA;&#x5E26;&#x7684;asm&#x5E93;
    exclude group:&apos;org.ow2.asm&apos;
}

asm &#x662F;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x6307;&#x4EE4;&#x6765;&#x63A7;&#x5236;&#x5B57;&#x8282;&#x7801;&#xFF0C;&#x6267;&#x884C;&#x6548;&#x7387;&#x5F88;&#x9AD8;&#x3002;

ASM&#x63D0;&#x4F9B;&#x4E86;&#x4E24;&#x79CD;API&#x6765;&#x751F;&#x6210;&#x548C;&#x8F6C;&#x6362;&#x5DF2;&#x7F16;&#x8BD1;&#x7C7B;&#xFF0C;
&#x4E00;&#x4E2A;&#x662F; &#x57FA;&#x4E8E;&#x4E8B;&#x4EF6;&#x5F62;&#x5F0F;&#x7684; core API &#xFF0C;
&#x53E6;&#x4E00;&#x4E2A;&#x662F;&#x57FA;&#x4E8E;&#x5BF9;&#x8C61;&#x5F62;&#x5F0F; &#x7684; tree API &#x3002;
&#x6211;&#x4EEC;&#x4E00;&#x822C;&#x91C7;&#x7528;&#x5360;&#x7528;&#x5185;&#x5B58;&#x8F83;&#x591A;&#x4F46;&#x662F;&#x96BE;&#x5EA6;&#x8F83;&#x5C0F;&#x7684; tree API  &#x3002;

demo &#x5730;&#x5740;
https://gitee.com/aivinCompany/AsmgradlePlugin
https://gitee.com/aivinCompany/AsmUseDemo
</code></pre>
<p><img src="../pics/&#x65B9;&#x6CD5;&#x8017;&#x65F6;.png" alt=""></p>
<h2 id="classvisitor"><a name="classvisitor" class="anchor-navigation-ex-anchor" href="#classvisitor"><i class="fa fa-link" aria-hidden="true"></i></a>2.1. ClassVisitor</h2>
<pre><code class="lang-text">&#x53EF;&#x4EE5;&#x8BBF;&#x95EE;class&#x6587;&#x4EF6;&#x7684;&#x5404;&#x4E2A;&#x90E8;&#x5206;&#xFF0C;&#x6BD4;&#x5982;&#x65B9;&#x6CD5;&#x3001;&#x53D8;&#x91CF;&#x3001;&#x6CE8;&#x89E3;&#x7B49;&#xFF0C;&#x7528;&#x4E8E;&#x4FEE;&#x6539; class &#x6587;&#x4EF6;&#x3002;
</code></pre>
<table>
<thead>
<tr>
<th>ClassVisitor &#x65B9;&#x6CD5;</th>
<th>&#x4F5C;&#x7528;</th>
</tr>
</thead>
<tbody>
<tr>
<td>visit()</td>
<td>&#x62FF;&#x5230; .class &#x7684;&#x4FE1;&#x606F;<br>version jdk&#x7684;&#x7248;&#x672C; *<br>access &#x7C7B;&#x7684;&#x4FEE;&#x9970;&#x7B26; <br>signature &#x6CDB;&#x578B;&#x4FE1;&#x606F; <br>superName &#x7C7B;&#x7684;&#x7236;&#x7C7B; <br>interfaces &#x7C7B;&#x5B9E;&#x73B0;&#x7684;&#x63A5;&#x53E3;</td>
</tr>
<tr>
<td>visitMethod()</td>
<td>&#x62FF;&#x5230;&#x51FD;&#x6570;&#x4FE1;&#x606F;&#x3002;<br>access &#x65B9;&#x6CD5;&#x7684;&#x4FEE;&#x9970;&#x7B26;<br>name &#x65B9;&#x6CD5;&#x540D;<br>desc &#x65B9;&#x6CD5;&#x7B7E;&#x540D;<br>signature &#x6CDB;&#x578B;&#x76F8;&#x5173;&#x4FE1;&#x606F;<br>exceptions &#x65B9;&#x6CD5;&#x629B;&#x51FA;&#x7684;&#x5F02;&#x5E38;&#x4FE1;&#x606F;</td>
</tr>
<tr>
<td>visitEnd()</td>
<td>&#x7C7B;&#x8BBF;&#x95EE;&#x7ED3;&#x675F;</td>
</tr>
</tbody>
</table>
<h2 id="methodvisitor"><a name="methodvisitor" class="anchor-navigation-ex-anchor" href="#methodvisitor"><i class="fa fa-link" aria-hidden="true"></i></a>2.2. MethodVisitor</h2>
<table>
<thead>
<tr>
<th>MethodVisitor &#x7684;&#x65B9;&#x6CD5;</th>
<th>&#x4F5C;&#x7528;</th>
</tr>
</thead>
<tbody>
<tr>
<td>onMethodEnter()</td>
<td>&#x65B9;&#x6CD5;&#x5F00;&#x5934;</td>
</tr>
<tr>
<td>onMethodExit(int opcode)</td>
<td>&#x65B9;&#x6CD5;&#x7ED3;&#x675F;</td>
</tr>
</tbody>
</table>
<h2 id="classreader"><a name="classreader" class="anchor-navigation-ex-anchor" href="#classreader"><i class="fa fa-link" aria-hidden="true"></i></a>2.3. ClassReader</h2>
<pre><code class="lang-text">&#x5BF9;&#x5177;&#x4F53;&#x7684; class &#x6587;&#x4EF6;&#x8FDB;&#x884C;&#x8BFB;&#x53D6;&#x4E0E;&#x89E3;&#x6790;
</code></pre>
<h2 id="classwriter"><a name="classwriter" class="anchor-navigation-ex-anchor" href="#classwriter"><i class="fa fa-link" aria-hidden="true"></i></a>2.4. ClassWriter</h2>
<pre><code class="lang-text">&#x5C06;&#x4FEE;&#x6539;&#x540E;&#x7684;class&#x6587;&#x4EF6;&#x901A;&#x8FC7;&#x6587;&#x4EF6;&#x6D41;&#x7684;&#x65B9;&#x5F0F;&#x8986;&#x76D6;&#x6389;&#x539F;&#x6765;&#x7684; class &#x6587;&#x4EF6;&#xFF0C;&#x4ECE;&#x800C;&#x5B9E;&#x73B0; class &#x4FEE;&#x6539;&#xFF1B;
</code></pre>
<h1 id="asm-bytecode-outline-&#x5B57;&#x8282;&#x7801;&#x8F85;&#x52A9;&#x5DE5;&#x5177;"><a name="asm-bytecode-outline-&#x5B57;&#x8282;&#x7801;&#x8F85;&#x52A9;&#x5DE5;&#x5177;" class="anchor-navigation-ex-anchor" href="#asm-bytecode-outline-&#x5B57;&#x8282;&#x7801;&#x8F85;&#x52A9;&#x5DE5;&#x5177;"><i class="fa fa-link" aria-hidden="true"></i></a>3. ASM Bytecode Outline (&#x5B57;&#x8282;&#x7801;&#x8F85;&#x52A9;&#x5DE5;&#x5177;)</h1>
<pre><code class="lang-text">&#x5728;&#x5F00;&#x53D1;&#x63D2;&#x4EF6;&#xFF0C;&#x9700;&#x8981;&#x8FDB;&#x884C;&#x63D2;&#x6869;&#x65F6;&#xFF0C;&#x9700;&#x8981;&#x5BF9;&#x5B57;&#x8282;&#x7801;&#x8FDB;&#x884C;&#x64CD;&#x4F5C;&#x3002;
&#x5982;&#x679C;&#x4F60;&#x4E0D;&#x719F;&#x6089;&#x5B57;&#x8282;&#x7801;&#x4EE3;&#x7801;&#xFF0C;&#x53EF;&#x4EE5;&#x501F;&#x52A9; &#x8FD9;&#x4E2A;&#x63D2;&#x4EF6;&#x8FDB;&#x884C;&#x8F85;&#x52A9;&#x7F16;&#x7801;&#x3002;
</code></pre>
<p><img src="../pics/ASMBytecodeOutline.png" alt=""></p>
<h1 id="transform-api--android&#x5E73;&#x53F0;"><a name="transform-api--android&#x5E73;&#x53F0;" class="anchor-navigation-ex-anchor" href="#transform-api--android&#x5E73;&#x53F0;"><i class="fa fa-link" aria-hidden="true"></i></a>4. Transform API ( Android&#x5E73;&#x53F0;)</h1>
<pre><code class="lang-text">Android Gradle &#x5DE5;&#x5177;&#x4ECE; 1.5.0-beta1 &#x7248;&#x672C;&#x5F00;&#x59CB;&#xFF0C;&#x5305;&#x542B;&#x4E86; Transform API&#xFF0C;
Transform API &#x5141;&#x8BB8;&#x7B2C;&#x4E09;&#x65B9;&#x63D2;&#x4EF6;&#x5728;&#x5C06;&#x7F16;&#x8BD1;&#x540E;&#x7684;&#x7C7B;&#x6587;&#x4EF6;&#x8F6C;&#x6362;&#x4E3A; dex &#x6587;&#x4EF6;&#x4E4B;&#x524D;&#x5BF9; .class &#x6587;&#x4EF6;&#x8FDB;&#x884C;&#x64CD;&#x4F5C;&#x3002;

&#x53EF;&#x4EE5;&#x8FD9;&#x4E48;&#x7B80;&#x5355;&#x5730;&#x7406;&#x89E3;&#xFF0C;ASM&#x7684;&#x4F5C;&#x7528;&#x662F;&#x4FEE;&#x6539;&#x4F60;&#x6307;&#x5B9A;&#x7684; class&#x6587;&#x4EF6;&#xFF0C; 
Transform&#x7684;&#x4F5C;&#x7528;&#x662F;&#x904D;&#x5386;&#x4F60;&#x7684;&#x5DE5;&#x7A0B;&#x4E2D;&#x7684; class&#x6587;&#x4EF6;&#xFF0C;
&#x6839;&#x636E;&#x4F60;&#x8BBE;&#x5B9A;&#x7684;&#x6761;&#x4EF6;&#x627E;&#x5230;&#x4F60;&#x60F3;&#x8981;&#x4FEE;&#x6539;&#x7684;class&#x6587;&#x4EF6;&#xFF0C;
&#x8BA9; asm &#x53BB;&#x4FEE;&#x6539;&#xFF0C;
&#x5E76;&#x8BA9;&#x4FEE;&#x6539;&#x540E;&#x7684; class&#x6587;&#x4EF6; &#x6253;&#x5305;&#x5230;apk&#x4E2D;&#x3002;

&#x5173;&#x4E8E;&#x6DF7;&#x6DC6;&#x53EF;&#x4EE5;&#x4E0D;&#x7528;&#x62C5;&#x5FC3;&#x3002;
&#x6DF7;&#x6DC6;&#x5176;&#x5B9E;&#x662F;&#x4E2A;ProguardTransform&#xFF0C;&#x5728;&#x81EA;&#x5B9A;&#x4E49;&#x7684;Transform&#x4E4B;&#x540E;&#x6267;&#x884C;&#x3002;
</code></pre>
<h2 id="transform"><a name="transform" class="anchor-navigation-ex-anchor" href="#transform"><i class="fa fa-link" aria-hidden="true"></i></a>4.1. Transform</h2>
<table>
<thead>
<tr>
<th>&#x65B9;&#x6CD5;</th>
<th style="text-align:left">&#x4F5C;&#x7528;</th>
</tr>
</thead>
<tbody>
<tr>
<td>getName()</td>
<td style="text-align:left">&#x8FD4;&#x56DE;&#x8BE5; transform &#x5BF9;&#x5E94;&#x7684;task&#x540D;&#x79F0;&#xFF0C;<br>&#x5728;&#x7F16;&#x8BD1;&#x8FC7;&#x7A0B;&#x4E2D;&#x4F1A;&#x6253;&#x5370;&#x51FA;&#x7C7B;&#x4F3C;&#x7684;&#x4FE1;&#x606F; ,{Name} &#x662F; getName()&#x7684;&#x503C;&#x3002;<br>Task :app:transformClassesWith{Name}ForDebug UP-TO-DATE</td>
</tr>
<tr>
<td>getInputTypes()</td>
<td style="text-align:left">&#x9700;&#x8981;&#x5904;&#x7406;&#x7684;&#x6570;&#x636E;&#x7C7B;&#x578B;&#x3002;<br>CONTENT_CLASS &#x4EE3;&#x8868; java &#x7684; class(&#x542B;jar&#x4E2D;&#x7684;)&#x6587;&#x4EF6;<br>RESOURCES &#x4EE3;&#x8868;&#x8D44;&#x6E90;</td>
</tr>
<tr>
<td>getScopes()</td>
<td style="text-align:left">&#x6307; Transform &#x8981;&#x64CD;&#x4F5C;&#x5185;&#x5BB9;&#x7684;&#x8303;&#x56F4; <br>EXTERNAL_LIBRARIES   &#x53EA;&#x6709;&#x5916;&#x90E8;&#x5E93;<br>PROJECT   &#x53EA;&#x6709;&#x9879;&#x76EE;&#x5185;&#x5BB9; <br>PROJECT_LOCAL_DEPS  &#x53EA;&#x6709;&#x9879;&#x76EE;&#x7684;&#x672C;&#x5730;&#x4F9D;&#x8D56;(&#x672C;&#x5730;jar)<br>PROVIDED_ONLY   &#x53EA;&#x63D0;&#x4F9B;&#x672C;&#x5730;&#x6216;&#x8FDC;&#x7A0B;&#x4F9D;&#x8D56;&#x9879; <br>SUB_PROJECTS   &#x53EA;&#x6709;&#x5B50;&#x9879;&#x76EE;&#x3002; <br>SUB_PROJECTS_LOCAL_DEPS   &#x53EA;&#x6709;&#x5B50;&#x9879;&#x76EE;&#x7684;&#x672C;&#x5730;&#x4F9D;&#x8D56;&#x9879;(&#x672C;&#x5730;jar)&#x3002; <br>TESTED_CODE  &#x7531;&#x5F53;&#x524D;&#x53D8;&#x91CF;(&#x5305;&#x62EC;&#x4F9D;&#x8D56;&#x9879;)&#x6D4B;&#x8BD5;&#x7684;&#x4EE3;&#x7801; TransformManager.SCOPE_FULL_PROJECT   &#x5904;&#x7406;&#x6240;&#x6709;&#x7684;&#x5B57;&#x8282;&#x7801;</td>
</tr>
<tr>
<td>isIncremental()</td>
<td style="text-align:left">&#x662F;&#x5426;&#x589E;&#x91CF;&#x6784;&#x5EFA;&#x3002;<br>&#x589E;&#x91CF;&#x7F16;&#x8BD1;&#x80FD;&#x6709;&#x6548;&#x63D0;&#x5347;&#x7F16;&#x8BD1;&#x901F;&#x5EA6;&#x3002;<br>&#x4F46;&#x662F;&#x9700;&#x8981;&#x81EA;&#x5DF1;&#x5728;transform&#x65B9;&#x6CD5;&#x91CC;&#x9762;&#x6839;&#x636E;&#x589E;&#x91CF;&#x6587;&#x4EF6;&#x7684;&#x72B6;&#x6001;&#x8FDB;&#x884C;&#x5224;&#x65AD;&#x5904;&#x7406;&#x3002;</td>
</tr>
<tr>
<td>transform( xx)</td>
<td style="text-align:left">&#x5C31;&#x7B97;&#x4EC0;&#x4E48;&#x90FD;&#x4E0D;&#x505A;&#xFF0C;&#x4E5F;&#x9700;&#x8981;&#x628A;&#x6240;&#x6709;&#x7684;&#x8F93;&#x5165;&#x6587;&#x4EF6;&#x62F7;&#x8D1D;&#x5230;&#x76EE;&#x6807;&#x76EE;&#x5F55;&#x4E0B;,<br>&#x5426;&#x5219;&#x4E0B;&#x4E00;&#x4E2A;Task&#x5C31;&#x6CA1;&#x6709;TransformInput&#x4E86;&#x3002;<br>&#x5982;&#x679C;&#x662F;&#x6B64;&#x65B9;&#x6CD5;&#x7A7A;&#x5B9E;&#x73B0;&#xFF0C;&#x6700;&#x540E;&#x4F1A;&#x5BFC;&#x81F4;&#x6253;&#x5305;&#x7684;APK&#x7F3A;&#x5C11;.class&#x6587;&#x4EF6;</td>
</tr>
</tbody>
</table>
<h2 id="&#x5176;&#x4ED6;"><a name="&#x5176;&#x4ED6;" class="anchor-navigation-ex-anchor" href="#&#x5176;&#x4ED6;"><i class="fa fa-link" aria-hidden="true"></i></a>4.2. &#x5176;&#x4ED6;</h2>
<table>
<thead>
<tr>
<th>TransformInput</th>
<th>Transform &#x7684; inputs &#x6709;&#x4E24;&#x79CD;&#x7C7B;&#x578B;&#xFF0C;&#x4E00;&#x79CD;&#x662F;&#x76EE;&#x5F55;&#xFF0C;&#x4E00;&#x79CD;&#x662F; jar &#x5305;&#xFF0C;&#x8981;&#x5206;&#x5F00;&#x904D;&#x5386; &#x3002;</th>
</tr>
</thead>
<tbody>
<tr>
<td>DirectoryInput</td>
<td>&#x7528;&#x6765;&#x904D;&#x5386;&#x76EE;&#x5F55;</td>
</tr>
<tr>
<td>JarInput</td>
<td>&#x7528;&#x6765;&#x904D;&#x5386;jar</td>
</tr>
</tbody>
</table>
<footer class="page-footer"><span class="copyright">( no Copyright&#xFF0C;enjoy youself ! ) all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">The file was updated at :
2022-04-04 10:49:02
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Android外挂.html" class="navigation navigation-prev " aria-label="Previous page: Android外挂">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="智能家居.html" class="navigation navigation-next " aria-label="Next page: 智能家居">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Android字节码插桩","level":"1.12.33","depth":2,"next":{"title":"智能家居","level":"1.12.34","depth":2,"path":"chinese/android基础/智能家居.md","ref":"chinese/android基础/智能家居.md","articles":[]},"previous":{"title":"Android外挂","level":"1.12.32","depth":2,"path":"chinese/android基础/Android外挂.md","ref":"chinese/android基础/Android外挂.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-search","search-plus","todo","anchor-navigation-ex","copy-code-button","fontsettings","tbfed-pagefooter","local-video","splitter","expandable-chapters","favicon","theme-comscore","local-video"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"( no Copyright，enjoy youself ! )","modify_label":"The file was updated at :","modify_format":"YYYY-MM-DD HH:mm:ss"},"todo":{},"splitter":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"family":"sans","size":2,"theme":"white"},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"favicon":{"shortcut":"assets/images/favicon.ico","bookmark":"assets/images/favicon.ico"},"theme-comscore":{},"local-video":{},"copy-code-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"Aivin","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Aivin开发笔记","language":"zh-hans","gitbook":"*","description":"Aivin开发笔记"},"file":{"path":"chinese/android基础/Android字节码插桩.md","mtime":"2022-04-04T02:49:02.745Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-04-04T03:47:09.782Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

